package top.xiesen.testescapsulation;
/**
 * 封装数据模板
 * @author Allen
 *
 */
public class Man {
	/**
	 * 属性全部私有，static，final修饰的共有
	 * 方法全部公有
	 * boolean 没有get方法
	 */
	private String name;
	private int id;
	public static int cc;
	public static final int MAX_SPEED = 120;
	private boolean gendel;
	
	public String getName(){
		return this.name;
	}
	public void setName(String name){
		this.name = name;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public static int getCc() {
		return cc;
	}
	public static void setCc(int cc) {
		Man.cc = cc;
	}
	public static int getMaxSpeed() {
		return MAX_SPEED;
	}
	public boolean isGendel() {
		return gendel;
	}
	public void setGendel(boolean gendel) {
		this.gendel = gendel;
	}
	
	
}
